﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.UserCommon
{
    /// <summary>
    /// 角色权限
    /// </summary>
    [SugarTable("RolesPermissions")]
    public class RolesPermissions : BaseEntity
    {
        /// <summary>
        /// ID (主键，自增，不可为空)
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 角色ID (可空)
        /// </summary>
        public int RolesId { get; set; }

        /// <summary>
        /// 权限ID (可空)
        /// </summary>
        public int PermissionsId { get; set; }
    }
}
